import {Injectable} from "@angular/core";
import 'rxjs/add/operator/map';
import {Http} from "@angular/http";
import {UrlData} from "../../common/urldata";
import {Observable} from "rxjs/Observable";

@Injectable()
export class FeedbackService {

  constructor(private http: Http, private urlData: UrlData) {
  }

  feedback(data: any): Observable<any> {
    return this.http
      .post(this.urlData.baseUrl + `v1/feedback`, data)
      .map(response => response.json());
  };
}
